package WEB-INF.pages.laundry;

<%@ include file="/common/taglibs.jsp"%>
   
<head>
    <title><fmt:message key="laundryRequestItemList.title"/></title>
    <meta name="heading" content="<fmt:message key='laundryRequestItemList.heading'/>"/>
    <meta name="menu" content="RoleAdminLaundry"/>
</head>
<div id="help">
    <h2>
        <a href="<c:url value='helplaundryRequestItemList.html?decorate=false'/>"
           title="Help laundry request item list"
           onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return false;">
               <fmt:message key="help"/>
        </a>
    </h2>
</div>

<table class="tableGrey" id="SelectedDatas">
    <thead>
        <tr>
            <th class="hidden"/>
            <th><fmt:message key="laundry"/></th>
            <th><fmt:message key="coin"/></th>
            <th><fmt:message key="laundryRequest.date"/></th>            
            <th><fmt:message key="tradeMark"/></th>
            <th><fmt:message key="sizeRank.name"/></th>
            <th class="hidden"/>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td> <s:property value="laundryRequest.laundry.name" /> </td>
            <td> <s:property value="laundryRequest.coin.name" /> </td>
            <td> <s:property value="laundryRequest.date" /> </td>
            <td> <s:property value="laundryRequest.tradeMark.name" /> </td>
            <td> <s:property value="laundryRequest.sizeRank.name" /> </td>
        </tr>
    </tbody>
</table>

<c:set var="buttons">
    <input type="button" onclick="location.href='<c:url value="/clothesStorageWashed.html"/>'"
           value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<c:if test="${not empty laundryRequestTable.head}">
    <table class="table">
        <caption><center><fmt:message key="laundryRequestItem.numerationDetail"/></center></caption>
        <thead>
            <tr>
                <s:iterator value="laundryRequestTable.head">
                    <th><s:property /></th>
                </s:iterator>                
            </tr>
        </thead>
        <tbody>
            <s:iterator value="laundryRequestTable.body" status="status">
                <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>" style="cursor: pointer;">
                    <s:iterator value="row" status="it">
                        <td>
                            <s:if test="%{#it.index!=0}">
                                <s:property />
                            </s:if>
                        </td>
                    </s:iterator>                    
                </tr>
            </s:iterator>
        </tbody>
    </table>
</c:if>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    //highlightTableRows("purchaseDetailForm");
</script>